package com.game.modular.gameCore.map.controller;

import com.game.modular.gameCore.map.domain.CoreCityBuildings;
import com.game.modular.gameCore.map.service.impl.CoreCityBuildingsServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import com.game.comment.core.ResponseResult;

import java.util.List;


/**
 * 内政建筑(CoreCityBuildings)表服务控制层
 *
 * @author cxy
 * @since 2024-07-30 21:29:28
 */
@Api(tags = "内政建筑(CoreCityBuildings)") 
@Validated
@RestController
@AllArgsConstructor
@RequestMapping("/coreCityBuildings")
public class CoreCityBuildingsController {
    @Resource
    private CoreCityBuildingsServiceImpl coreCityBuildingsService;
    
    @ApiOperation("获取内政建筑列表")
    @PostMapping("/list")
    public ResponseResult<List<CoreCityBuildings>> list() {
        return ResponseResult.success(coreCityBuildingsService.listCache());
    }
}
